From 8de12117f67e72093b56367aa47fbd600abed654 Mon Sep 17 00:00:00 2001 From: Paul Zander Date: Mon, 12 Jan 2026 22:14:33 +0100 Subject: [PATCH] Include for GCC 16 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Origin: https://gitlab.freedesktop.org/poppler/poppler/-/commit/4a2294f59ebbbe690d09aa6f7e021e29cbb85782 ``` poppler-26.01.0/poppler/SplashOutputDev.cc: In constructor ‘T3FontCache::T3FontCache(const Ref*, double, double, double, double, int, int, int, int, bool, bool)’: poppler-26.01.0/poppler/SplashOutputDev.cc:1129:18: error: ‘INT_MAX’ was not declared in this scope 1129 | if (glyphW > INT_MAX / glyphH || glyphW <= 0 || glyphH <= 0 || glyphW * glyphH > 100000) { | ^~~~~~~ poppler-26.01.0/poppler/SplashOutputDev.cc:84:1: note: ‘INT_MAX’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ 83 | #include "SplashOutputDev.h" +++ |+#include 84 | #include ``` Signed-off-by: Paul Zander Signed-off-by: Sam James Gbp-Pq: Name Include-climits-for-GCC-16.patch --- poppler/Function.cc | 1 + poppler/Gfx.cc | 1 + poppler/Parser.cc | 1 + poppler/SplashOutputDev.cc | 1 + 4 files changed, 4 insertions(+) diff --git a/poppler/Function.cc b/poppler/Function.cc index 313b58d..60d535e 100644 --- a/poppler/Function.cc +++ b/poppler/Function.cc @@ -30,6 +30,7 @@ #include +#include #include #include #include diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc index 2436159..e24f414 100644 --- a/poppler/Gfx.cc +++ b/poppler/Gfx.cc @@ -60,6 +60,7 @@ #include +#include #include #include #include diff --git a/poppler/Parser.cc b/poppler/Parser.cc index 415fa5e..cf23d77 100644 --- a/poppler/Parser.cc +++ b/poppler/Parser.cc @@ -33,6 +33,7 @@ #include +#include #include "Object.h" #include "Array.h" #include "Dict.h" diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc index 184d37e..3b30669 100644 --- a/poppler/SplashOutputDev.cc +++ b/poppler/SplashOutputDev.cc @@ -53,6 +53,7 @@ #include +#include #include #include #include -- 2.30.2